package com.qiaofang.housewarehouse.stub.facade;

import com.qiaofang.housewarehouse.stub.request.HouseQueryDetailRequest;
import com.qiaofang.housewarehouse.stub.request.RentalHouseQueryRequest;
import com.qiaofang.housewarehouse.stub.response.RentalHouseQueryDetailResponse;
import com.qiaofang.housewarehouse.stub.response.RentalHouseQueryResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@FeignClient(name = "housewarehouse",url="${feign.url.housewarehouse}")
//@Api(tags = "RentalHouseQuery", value = "出租房源接口", description = "出租房源接口")
@RequestMapping(value = {"/RentalHouseQuery"})
public interface RentalHouseQueryFacade {
  //  @ApiOperation(value = "出租房源list", response = RentalHouseQueryResponse.class)
    @RequestMapping(value = "/searchRentalHouseList", method = RequestMethod.POST)
    RentalHouseQueryResponse searchRentalHouseList(RentalHouseQueryRequest rentalHouseQueryRequest);

  //  @ApiOperation(value = "出租房源详情", response = RentalHouseQueryDetailResponse.class)
    @RequestMapping(value = "/getRentalHouseDetail", method = RequestMethod.POST)
    RentalHouseQueryDetailResponse getRentalHouseDetail(HouseQueryDetailRequest rentalHouseQueryDetailRequest);
}
